import { createApp } from 'vue'
// import './style.css'
import App from './App.vue'

import router from './router'
import store from './store'

import svgIcon from '@/components/SvgIcon/index.vue'
import 'virtual:svg-icons-register'

import 'element-plus/dist/index.css'

import './router/permission.js'

import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import i18n from '@/i18n'

import filters from './utils/filters.js'

const app = createApp(App)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

filters(app)

app.use(router).use(store).use(i18n).component('svg-icon', svgIcon)
app.mount('#app')
